package _0_object_oriented;

import java.util.HashMap;
import java.util.Map;

public class  Gen<K, V> {
    public Map<K, V> map = new HashMap<>(){{
        put((K) "1", null);
    }};
    public <V> V get(String key) {
        return map.containsKey(key) ? (V) map.get(key) : null;
    }

    public static void main(String[] args) {
        Gen<Object, Object> objectObjectGen = new Gen<>();
        Long l = objectObjectGen.get("1");
        System.out.println(l);
    }
}
